<?php
$tdatalienhe=array();
	$tdatalienhe[".NumberOfChars"]=80; 
	$tdatalienhe[".ShortName"]="lienhe";
	$tdatalienhe[".OwnerID"]="";
	$tdatalienhe[".OriginalTable"]="lienhe";


	
//	field labels
$fieldLabelslienhe = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelslienhe["English"]=array();
	$fieldToolTipslienhe["English"]=array();
	$fieldLabelslienhe["English"]["ten"] = "Ten";
	$fieldToolTipslienhe["English"]["ten"] = "";
	$fieldLabelslienhe["English"]["email"] = "Email";
	$fieldToolTipslienhe["English"]["email"] = "";
	$fieldLabelslienhe["English"]["noidung"] = "Noidung";
	$fieldToolTipslienhe["English"]["noidung"] = "";
	if (count($fieldToolTipslienhe["English"])){
		$tdatalienhe[".isUseToolTips"]=true;
	}
}


	
	$tdatalienhe[".NCSearch"]=true;

	

$tdatalienhe[".shortTableName"] = "lienhe";
$tdatalienhe[".nSecOptions"] = 0;
$tdatalienhe[".recsPerRowList"] = 1;	
$tdatalienhe[".tableGroupBy"] = "0";
$tdatalienhe[".mainTableOwnerID"] = "";
$tdatalienhe[".moveNext"] = 1;




$tdatalienhe[".showAddInPopup"] = false;

$tdatalienhe[".showEditInPopup"] = false;

$tdatalienhe[".showViewInPopup"] = false;


$tdatalienhe[".fieldsForRegister"] = array();

$tdatalienhe[".listAjax"] = false;

	$tdatalienhe[".audit"] = false;

	$tdatalienhe[".locking"] = false;
	
$tdatalienhe[".listIcons"] = true;
$tdatalienhe[".edit"] = true;
$tdatalienhe[".inlineEdit"] = true;
$tdatalienhe[".view"] = true;

$tdatalienhe[".exportTo"] = true;

$tdatalienhe[".printFriendly"] = true;

$tdatalienhe[".delete"] = true;

$tdatalienhe[".showSimpleSearchOptions"] = false;

$tdatalienhe[".showSearchPanel"] = true;


$tdatalienhe[".isUseAjaxSuggest"] = true;

$tdatalienhe[".rowHighlite"] = true;


// button handlers file names

$tdatalienhe[".addPageEvents"] = false;

$tdatalienhe[".arrKeyFields"][] = "ten";
$tdatalienhe[".arrKeyFields"][] = "email";

// use datepicker for search panel
$tdatalienhe[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatalienhe[".isUseTimeForSearch"] = false;

$tdatalienhe[".isUseiBox"] = false;



$tdatalienhe[".isUseInlineAdd"] = true;

$tdatalienhe[".isUseInlineEdit"] = true;
$tdatalienhe[".isUseInlineJs"] = $tdatalienhe[".isUseInlineAdd"] || $tdatalienhe[".isUseInlineEdit"];

$tdatalienhe[".allSearchFields"] = array();

$tdatalienhe[".globSearchFields"][] = "ten";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten", $tdatalienhe[".allSearchFields"]))
{
	$tdatalienhe[".allSearchFields"][] = "ten";	
}
$tdatalienhe[".globSearchFields"][] = "email";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("email", $tdatalienhe[".allSearchFields"]))
{
	$tdatalienhe[".allSearchFields"][] = "email";	
}


$tdatalienhe[".googleLikeFields"][] = "ten";
$tdatalienhe[".googleLikeFields"][] = "email";



$tdatalienhe[".advSearchFields"][] = "ten";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten", $tdatalienhe[".allSearchFields"])) 
{
	$tdatalienhe[".allSearchFields"][] = "ten";	
}
$tdatalienhe[".advSearchFields"][] = "email";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("email", $tdatalienhe[".allSearchFields"])) 
{
	$tdatalienhe[".allSearchFields"][] = "email";	
}
$tdatalienhe[".advSearchFields"][] = "noidung";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("noidung", $tdatalienhe[".allSearchFields"])) 
{
	$tdatalienhe[".allSearchFields"][] = "noidung";	
}

$tdatalienhe[".isTableType"] = "list";


	

$tdatalienhe[".isDisplayLoading"] = true;

$tdatalienhe[".isResizeColumns"] = false;





$tdatalienhe[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatalienhe[".strOrderBy"] = $gstrOrderBy;
	
$tdatalienhe[".orderindexes"] = array();

$tdatalienhe[".sqlHead"] = "SELECT ten,  email,  noidung";
$tdatalienhe[".sqlFrom"] = "FROM lienhe";
$tdatalienhe[".sqlWhereExpr"] = "";
$tdatalienhe[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatalienhe[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatalienhe[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "ten";
	$tableKeys[] = "email";
	$tdatalienhe[".Keys"] = $tableKeys;

//	ten
	$fdata = array();
	$fdata["strName"] = "ten";
	$fdata["ownerTable"] = "lienhe";
		$fdata["Label"]="Ten"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ten";
	
		$fdata["FullName"]= "ten";
	
		
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=100";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatalienhe["ten"]=$fdata;
//	email
	$fdata = array();
	$fdata["strName"] = "email";
	$fdata["ownerTable"] = "lienhe";
		$fdata["Label"]="Email"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "email";
	
		$fdata["FullName"]= "email";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatalienhe["email"]=$fdata;
//	noidung
	$fdata = array();
	$fdata["strName"] = "noidung";
	$fdata["ownerTable"] = "lienhe";
		$fdata["Label"]="Noidung"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "noidung";
	
		$fdata["FullName"]= "noidung";
	
		$fdata["IsRequired"]=true; 
	
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 3;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=400";
		$fdata["nRows"] = 400;
			$fdata["EditParams"].= " cols=450";
		$fdata["nCols"] = 450;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatalienhe["noidung"]=$fdata;

	
$tables_data["lienhe"]=&$tdatalienhe;
$field_labels["lienhe"] = &$fieldLabelslienhe;
$fieldToolTips["lienhe"] = &$fieldToolTipslienhe;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["lienhe"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["lienhe"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto53=array();
$proto53["m_strHead"] = "SELECT";
$proto53["m_strFieldList"] = "ten,  email,  noidung";
$proto53["m_strFrom"] = "FROM lienhe";
$proto53["m_strWhere"] = "";
$proto53["m_strOrderBy"] = "";
$proto53["m_strTail"] = "";
$proto54=array();
$proto54["m_sql"] = "";
$proto54["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto54["m_column"]=$obj;
$proto54["m_contained"] = array();
$proto54["m_strCase"] = "";
$proto54["m_havingmode"] = "0";
$proto54["m_inBrackets"] = "0";
$proto54["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto54);

$proto53["m_where"] = $obj;
$proto56=array();
$proto56["m_sql"] = "";
$proto56["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto56["m_column"]=$obj;
$proto56["m_contained"] = array();
$proto56["m_strCase"] = "";
$proto56["m_havingmode"] = "0";
$proto56["m_inBrackets"] = "0";
$proto56["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto56);

$proto53["m_having"] = $obj;
$proto53["m_fieldlist"] = array();
						$proto58=array();
			$obj = new SQLField(array(
	"m_strName" => "ten",
	"m_strTable" => "lienhe"
));

$proto58["m_expr"]=$obj;
$proto58["m_alias"] = "";
$obj = new SQLFieldListItem($proto58);

$proto53["m_fieldlist"][]=$obj;
						$proto60=array();
			$obj = new SQLField(array(
	"m_strName" => "email",
	"m_strTable" => "lienhe"
));

$proto60["m_expr"]=$obj;
$proto60["m_alias"] = "";
$obj = new SQLFieldListItem($proto60);

$proto53["m_fieldlist"][]=$obj;
						$proto62=array();
			$obj = new SQLField(array(
	"m_strName" => "noidung",
	"m_strTable" => "lienhe"
));

$proto62["m_expr"]=$obj;
$proto62["m_alias"] = "";
$obj = new SQLFieldListItem($proto62);

$proto53["m_fieldlist"][]=$obj;
$proto53["m_fromlist"] = array();
												$proto64=array();
$proto64["m_link"] = "SQLL_MAIN";
			$proto65=array();
$proto65["m_strName"] = "lienhe";
$proto65["m_columns"] = array();
$proto65["m_columns"][] = "id";
$proto65["m_columns"][] = "ten";
$proto65["m_columns"][] = "email";
$proto65["m_columns"][] = "noidung";
$obj = new SQLTable($proto65);

$proto64["m_table"] = $obj;
$proto64["m_alias"] = "";
$proto66=array();
$proto66["m_sql"] = "";
$proto66["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto66["m_column"]=$obj;
$proto66["m_contained"] = array();
$proto66["m_strCase"] = "";
$proto66["m_havingmode"] = "0";
$proto66["m_inBrackets"] = "0";
$proto66["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto66);

$proto64["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto64);

$proto53["m_fromlist"][]=$obj;
$proto53["m_groupby"] = array();
$proto53["m_orderby"] = array();
$obj = new SQLQuery($proto53);

$queryData_lienhe = $obj;
$tdatalienhe[".sqlquery"] = $queryData_lienhe;

$tableEvents["lienhe"] = new eventsBase;

?>
